package de.fme.publishing;

import java.util.concurrent.ExecutionException;

import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.alfresco.service.cmr.urlshortening.UrlShortener;

public class DemoJob extends AbstractTransactionJob {
	
	private UrlShortener urlShortener;
	
	@Override
	protected void doExecute() throws ExecutionException {
		
		System.out.println("I'm here: " + AuthenticationUtil.getFullyAuthenticatedUser());
		System.out.println("urlShortener: " + urlShortener.getClass().getSimpleName());

	}
	
	public void setUrlShortener(UrlShortener urlShortener) {
		this.urlShortener = urlShortener;
	}

}
